namespace TeamCityMonitor.Migrations
{
    using System.Data.Entity.Migrations;
    
    public partial class AddCacheStatistics1 : DbMigration
    {
        public override void Up()
        {
            AlterColumn("CacheStatistics", "TotalExecutionTime", c => c.Long(nullable: false));
            AlterColumn("CacheStatistics", "NoOfExecutions", c => c.Long(nullable: false));
            AlterColumn("CacheStatistics", "MaximumExecutionTime", c => c.Long(nullable: false));
            AlterColumn("CacheStatistics", "MaximumExecutionTimeDate", c => c.DateTime(nullable: false));
            AlterColumn("CacheStatistics", "MinimumExecutionTime", c => c.Long(nullable: false));
            AlterColumn("CacheStatistics", "MinimumExecutionTimeDate", c => c.DateTime(nullable: false));
        }
        
        public override void Down()
        {
            AlterColumn("CacheStatistics", "MinimumExecutionTimeDate", c => c.Int(nullable: false));
            AlterColumn("CacheStatistics", "MinimumExecutionTime", c => c.Int(nullable: false));
            AlterColumn("CacheStatistics", "MaximumExecutionTimeDate", c => c.Int(nullable: false));
            AlterColumn("CacheStatistics", "MaximumExecutionTime", c => c.Int(nullable: false));
            AlterColumn("CacheStatistics", "NoOfExecutions", c => c.Int(nullable: false));
            AlterColumn("CacheStatistics", "TotalExecutionTime", c => c.Int(nullable: false));
        }
    }
}
